.class Lcom/xingbook/group/activity/ap;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/xingbook/ui/x;


# instance fields
.field final synthetic a:Lcom/xingbook/group/activity/GroupTopicDetail;


# direct methods
.method constructor <init>(Lcom/xingbook/group/activity/GroupTopicDetail;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 7

    const/4 v6, 0x0

    if-nez p1, :cond_1

    iget-object v0, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-virtual {v0}, Lcom/xingbook/group/activity/GroupTopicDetail;->finish()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/group/a/p;->u()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_2

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/a/p;->u()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    const-string v1, "\u8bf7\u5728\u8bdd\u9898\u4fe1\u606f\u52a0\u8f7d\u5b8c\u6210\u540e\u5206\u4eab~"

    invoke-static {v0, v1, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v0}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v0

    iget-object v0, v0, Lcom/xingbook/group/a/p;->o:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_3

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://app2.xingbook.com/group/viewSharedTopic.do"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "?id="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/a/p;->t()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    new-instance v0, Lcom/xingbook/c/q;

    iget-object v1, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v1}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/group/a/p;->s()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v2}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/group/a/p;->t()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v3}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v3

    invoke-virtual {v3}, Lcom/xingbook/group/a/p;->u()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v4}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v4

    iget-object v4, v4, Lcom/xingbook/group/a/p;->o:Ljava/util/ArrayList;

    invoke-virtual {v4, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/xingbook/group/a/h;

    invoke-virtual {v4}, Lcom/xingbook/group/a/h;->a()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iget-object v6, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-static {v6}, Lcom/xingbook/group/activity/GroupTopicDetail;->e(Lcom/xingbook/group/activity/GroupTopicDetail;)Lcom/xingbook/group/a/p;

    move-result-object v6

    iget-object v6, v6, Lcom/xingbook/group/a/p;->m:Ljava/lang/String;

    invoke-static {v6}, Lcom/xingbook/group/b/d;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/c/q;-><init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Lcom/xingbook/park/activity/SNSShareActivity;->a(Landroid/app/Activity;Lcom/xingbook/c/q;Lcom/xingbook/park/activity/bm;)Z

    goto/16 :goto_0

    :cond_3
    iget-object v0, p0, Lcom/xingbook/group/activity/ap;->a:Lcom/xingbook/group/activity/GroupTopicDetail;

    const-string v1, "\u8be5\u8bdd\u9898\u6ca1\u6709\u5185\u5bb9\uff0c\u6682\u65f6\u65e0\u6cd5\u5206\u4eab~"

    invoke-static {v0, v1, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0
.end method
